from slum.model.base import Base

from sqlalchemy import Column, Integer, String, DateTime, Date, Time, Float, Enum, Boolean
from sqlalchemy.sql import func

class Artist(Base):
    ''' XXX 
    '''
    __tablename__ = 'artist'
    id = Column(Integer, primary_key=True)

    name    = Column(String)
    created = Column(DateTime, default=func.current_timestamp())

    # single table inheritance stuff that identifies  
    discriminator = Column('name', String(50))
    __mapper_args__ = {'polymorphic_on': discriminator}

    def get_X(self):
        ''' XXXX  XXX '''
